//
//  NSString+Utils.h
//  LPA_C2C
//
//  Created by HuangYingjie on 15/11/2.
//  Copyright © 2015年 yixin. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Utils)

// md5加密
- (NSString *)md5String;
// 纯数字字符串
- (BOOL)isAllDigits;
// 去除空格
- (NSString *)trimedString;
// 返回字符串size
- (CGSize)boundingRectWithSize:(CGSize)size font:(UIFont *)font;

- (NSString *)yinYinCharactor;
// 正则表达式判断密码强度
- (BOOL)isValidateByRegex:(NSString *)regex;

//OA:
//根据Attribute返回字符串size
- (CGSize)boundingRectWhitAttributes:(NSDictionary *)attributes AndSize:(CGSize)size;

///替换字符串
///\a - Sound alert
///\b - 退格
///\f - Form feed
///\n - 换行
///\r - 回车
///\t - 水平制表符
///\v - 垂直制表符
///\\ - 反斜杠
///\" - 双引号
///\' - 单引号
- (NSString *)replaceWithstr:(NSString *)str;

//containsString 支持iOS 8及以上系统，该方法是兼容iOS 7
- (BOOL)containsSomeString:(NSString *)string;
//判断字符串是否为空
- (BOOL)isBlankString:(NSString *)string;

// 获取ip地址
- (NSString *)getIpAddress;


- (CGSize)sizeWithBoundingRectSize:(CGSize)rectSize attributeFont:(UIFont *)attributeFont;
    
//处理价格
+ (NSString *)handlePrice:(double)price;
@end
